﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public abstract class SoldierState : State {

    public GameObject m_Model;// 对象模型
    public Animator m_Animator;// 对象动画控制器
    public UnityEngine.AI.NavMeshAgent m_NavAgent;// 对象寻路组件
    public SoldierStateManager m_StateManager;// 状态转换工具
    public MoveUnit m_soldier;// 对象主脚本
    //public AudioSource m_AudioSource;

    public SoldierState(SoldierStateManager stateManager)
    {
        m_StateManager = stateManager;
        m_Model = m_StateManager.obj;
        m_Animator = m_Model.GetComponent<Animator>();
        m_NavAgent = m_Model.GetComponent<UnityEngine.AI.NavMeshAgent>();
        m_soldier = m_Model.GetComponent<MoveUnit>();

    }
}
